|
|
|
|
|
|
|
Figure 14.33
Program Extrude creating an extruded surface. |
|
|
|
|
|
|
|
|
To create an extruded surface, you move a base curve along a generating path. To make a surface of revolution, rotate a base curve around an axis of rotation. Figure 14.34 shows a surface of revolution with the base curve drawn in heavy lines. To produce this surface, the base curve was rotated around the Y axis. |
|
|
|
|
|
|
|
|
Creating a surface of revolution is very similar to creating an extruded surface. In both cases you take a base curve and repeatedly transform it. At each step, you draw the transformed curve and connect the points on the transformed curve to the corresponding points on the previously transformed version. |
|
|
|
|
|
|
|
|
You can produce a surface of revolution by rotating the base curve around any line in three-dimensional space. In practice, it is much easier to rotate around the X, Y, or Z coordinate axis. If you want to rotate a curve around some other line, you can first apply translations and rotations until the line coincides with a coordinate axis. Then perform the rotation and translate and rotate the line back to its original position. These operations are described in detail in Chapter 13, Three-Dimensional Transformations. |
|
|
|
|
|
|
|
|
The surface in Figure 14.34 appears to be made up of trapezoids. It can be shown that the areas that make up a surface of revolution are trapezoids as long as the surface's base curve lies in a plane that passes through the axis of rotation. On the other hand, if the curve does not lie in such a plane, the areas that make up the surface are ''bent trapezoids" similar to the bent rectangles that make up many other types of surfaces. |
|
|
|
|
|